import { DescItem } from "/@/components/Description/src/types";
import { QrCode } from '/@/components/Qrcode/index';

export const schema: DescItem[] = [
    {
      field: 'username',
      label: '标题',
    },
    {
      field: 'nickName',
      label: '区域位置',
    },
    {
      field: 'phone',
      label: '详细地址',
    },
    {
      field: 'email',
      label: '所属大楼',
    },
    {
      field: 'addr',
      label: '学校',
    },
    {
      field: 'addr',
      label: '租金',
    },
    {
      field: 'addr',
      label: '租期',
    },
    {
      field: 'addr',
      label: '入住时间',
    },
    {
      field: 'addr',
      label: '联系方式',
    },
    {
      field: 'addr',
      label: '配套特点',
    },
    {
      field: 'addr',
      label: 'xx特点',
    },
    {
      field: 'addr',
      label: '详细描述',
    },
    {
      field: 'addr',
      label: '照片',
      render: (curVal, data) => {
        console.log(curVal, data);
        return <QrCode value="../../../../assets/images/1.png" />;
      },
    },
    {
      field: 'addr',
      label: '视频',
      render: (curVal, data) => {
        console.log(curVal, data);
        return <QrCode value="../../../../assets/images/1.png" />;
      },
    },
    {
      field: 'addr',
      label: 'Floorplan',
      render: (curVal, data) => {
        console.log(curVal, data);
        return <QrCode value="../../../../assets/images/1.png" />;
      },
    },
    {
      field: 'addr',
      label: 'VR网址',
    },
  ];
